package gift4friend.shared.core;

import java.io.Serializable;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.NotPersistent;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import org.codehaus.jackson.annotate.JsonIgnore;

public class Likeable implements Serializable {


	@NotPersistent
	private static final long serialVersionUID = 2760731204791601415L;

	@NotPersistent
	public static final String GOOGLE_PLUS = "GOOGLE+";
	
	@NotPersistent
	public static final String FACEBOOK = "FACEBOOK";
	
	@NotPersistent
	public static final String NO_ORIGIN = "NO_ORIGIN";
	
	@Persistent
	private String what = new String();
	
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	@JsonIgnore
	private Long id;
	
	@Persistent
	private String networkOrigin =Likeable.NO_ORIGIN;

	//needed cause of serializable
	public Likeable()
	{
		
	}
	
	public Likeable(String what, String networkOrigin) {
		super();
		this.what = what;
		this.networkOrigin = networkOrigin;
	}

	public String getWhat() {
		return what;
	}

	public void setWhat(String what) {
		this.what = what;
	}

	public String getNetworkOrigin() {
		return networkOrigin;
	}

	public void setNetworkOrigin(String networkOrigin) {
		this.networkOrigin = networkOrigin;
	}

	public Long getId() {
		return id;
	}
	
	
}
